/** @format */

import uni from '@dcloudio/vite-plugin-uni'
import { defineConfig } from 'vite'

import Components from '@uni-helper/vite-plugin-uni-components'
import { WotResolver } from '@uni-helper/vite-plugin-uni-components/resolvers'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    Components({
      resolvers: [WotResolver()],
    }),
    uni(),
  ],
  resolve: {
    extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json'],
  },
  compilerOptions: {
    baseUrl: '.',
    paths: {
      '@': ['src'],
    },
  },
})
